package code.framework.android.view;

import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;

/**
 * 
 */
public class FinishActivityListener implements OnClickListener {

	private Activity activity;

	public FinishActivityListener(Activity activity) {
		this.activity = activity;
	}

	public void onClick(View v) {
		// SharedPreferences settings = getSharedPreferences(
		// Constants.PREF, 0);
		// settings.edit().putString(Constants.PREF_VERSION_DATE,
		// "1").commit();
		Intent i = new Intent();
		activity.setResult(Activity.RESULT_OK, i);
		activity.finish();
	}

}
